# -*- coding: utf-8 -*-
"""
Routes of main webapp. Since we'll utilize HTML5 history api,
the route is only one for catching all route possibility.
"""

from webapp2 import Route
import handlers


# secure_scheme = 'https'

_routes = [
    #taskqueue
    # Route(r'/tasks/bootstrap', handler=handlers.BootstrapHandler),
    # Route(r'/tasks/bootstrap/channel', handler=handlers.BootstrapChannelHandler),

    # Route(r'/', handler=handlers.MainWebHandler),
    Route(r'/<:.*>', handler=handlers.MainWebHandler)
]


def get_routes():
    return _routes


def add_routes(app):
    # if app.debug:
    #     secure_scheme = 'http'
    for r in _routes:
        app.router.add(r)
